package com.songshuai.webapi.crm.dao;

import com.songshuai.webapi.crm.model.ClueTurnRecord;
import org.apache.ibatis.annotations.Param;

/**
 * ClueTurnRecordMapper继承基类
 */

public interface ClueTurnRecordMapper {

    ClueTurnRecord selectByPrimaryKey(String turnId);
    Integer deleteByPrimaryKey(String turnId);
    Integer insertSelective(ClueTurnRecord clueTurnRecord);
    Integer updateByPrimaryKeySelective(ClueTurnRecord clueTurnRecord);
    //查找上一个跟进人
    ClueTurnRecord selectPreOwner(@Param("customId")  String customId);
    //查找学员所属人是否重复
    ClueTurnRecord selectCustomAndOwner(ClueTurnRecord clueTurnRecord);

}